package com.yanqu.road.entity.log.pixiu;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_activity_pixiu_tap", autoSave = true, dataUpload = true, eventName = "pixiu_fun",uploadCk = true,desc = "吞财貔貅")
public class LogPiXiuTap extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动ID", isIndex = true, dataAttribute = "activityid")
    private int activityId;

    @FieldTypeAnnotation(desc = "用户ID", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "获得喜悦值", dataAttribute = "pixiu_funnum")
    private long num;

    @FieldTypeAnnotation(desc = "当前喜悦值", dataAttribute = "pixiu_funsum")
    private long nowNum;


    public LogPiXiuTap(int activityId, long userId, long num, long nowNum) {
        this.activityId = activityId;
        this.userId = userId;
        this.num = num;
        this.nowNum = nowNum;
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public long getNum() {
        return num;
    }

    public void setNum(long num) {
        this.num = num;
    }

    public long getNowNum() {
        return nowNum;
    }

    public void setNowNum(long nowNum) {
        this.nowNum = nowNum;
    }

    @Override
    public long getUserId() {
        return userId;
    }
}
